﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class AgeRangeConfiguration : EntityConfiguration<AgeRange>
    {
        public AgeRangeConfiguration()
        {
            Property(ar => ar.AgeRangeID).IsIdentity();
            
            MapHierarchy(
            ar => new
            {
                ar.AgeRangeID,
                ar.Description
            }
        ).ToTable("AgeRange");
        }
    }
}
